<html xmlns="http://www.w3.org/1999/xhtml"><head>


<head>
<link type="text/css" rel="stylesheet" href="../css/style.css">

  
 <script src="http://code.jquery.com/jquery-latest.min.js"></script>
 
</head>

<body>
    <div class="wrapper" id="wrapper">
        <div class="header">
            <img src="../images/header.png">
            <br>
            <br>
        </div>
        <div id="content">
            <div id="upnlCombination">
                    
                            
                            <div class="combination">
                                <div class="combinationTitle">
                                    <h2>
                                        System 1
                                    </h2>
                                    <input class="minValue" type="text" value="1" name="lvItems$ctrl0$txtSystemTypeMin">
                                    <span>
                                        <span id="lvItems_ctrl0_lblSeparator">/</span>
                                    </span>
                                    <input class="maxValue"  type="text" id="lvItems_ctrl0_txtSystemTypeMax" onkeypress="if (WebForm_TextBoxKeyHandler(event) == false) return false;" onchange="javascript:setTimeout('__doPostBack(\'lvItems$ctrl0$txtSystemTypeMax\',\'\')', 0)" value="2" name="lvItems$ctrl0$txtSystemTypeMax">
                                    <a href="javascript:__doPostBack('lvItems$ctrl0$btnDeleteItem','')" id="lvItems_ctrl0_btnDeleteItem">x</a>
                                    <div class="clr">
                                    </div>
                                </div>
                                
                                        
                                        <div class="combinationEntry">
                                            <span>
                                                <span id="lvItems_ctrl0_lvOdds_ctrl0_lblMatch">Match 1</span></span>
                                            <input type="checkbox" name="lvItems$ctrl0$lvOdds$ctrl0$chkIsHit" id="lvItems_ctrl0_lvOdds_ctrl0_chkIsHit">
                                            <input type="text" id="lvItems_ctrl0_lvOdds_ctrl0_txtOdd" name="lvItems$ctrl0$lvOdds$ctrl0$txtOdd">
                                            <div class="clr">
                                            </div>
                                        </div>
                                    
                                        <div class="combinationEntry">
                                            <span>
                                                <span id="lvItems_ctrl0_lvOdds_ctrl1_lblMatch">Match 2</span></span>
                                            <input type="checkbox" name="lvItems$ctrl0$lvOdds$ctrl1$chkIsHit" id="lvItems_ctrl0_lvOdds_ctrl1_chkIsHit">
                                            <input type="text" id="lvItems_ctrl0_lvOdds_ctrl1_txtOdd" name="lvItems$ctrl0$lvOdds$ctrl1$txtOdd">
                                            <div class="clr">
                                            </div>
                                        </div>
                                    
                                    
                            </div>
                        
                            <div class="combination">
                                <div class="combinationTitle">
                                    <h2>
                                        System 2
                                    </h2>
                                    <input class="minValue"  type="text" onblur="CheckSystemType('lvItems_ctrl1_txtSystemTypeMin','lvItems_ctrl1_txtSystemTypeMax')" id="lvItems_ctrl1_txtSystemTypeMin" value="3" name="lvItems$ctrl1$txtSystemTypeMin">
                                    <span>
                                        <span id="lvItems_ctrl1_lblSeparator">/</span>
                                    </span>
                                    <input class="maxValue"  type="text" id="lvItems_ctrl1_txtSystemTypeMax" onkeypress="if (WebForm_TextBoxKeyHandler(event) == false) return false;" onchange="javascript:setTimeout('__doPostBack(\'lvItems$ctrl1$txtSystemTypeMax\',\'\')', 0)" value="4" name="lvItems$ctrl1$txtSystemTypeMax">
                                    <a href="javascript:__doPostBack('lvItems$ctrl1$btnDeleteItem','')" id="lvItems_ctrl1_btnDeleteItem">x</a>
                                    <div class="clr">
                                    </div>
                                </div>
                                
                                        
                                        <div class="combinationEntry">
                                            <span>
                                                <span id="lvItems_ctrl1_lvOdds_ctrl0_lblMatch">Match 1</span></span>
                                            <input type="checkbox" name="lvItems$ctrl1$lvOdds$ctrl0$chkIsHit" id="lvItems_ctrl1_lvOdds_ctrl0_chkIsHit">
                                            <input type="text" id="lvItems_ctrl1_lvOdds_ctrl0_txtOdd" name="lvItems$ctrl1$lvOdds$ctrl0$txtOdd">
                                            <div class="clr">
                                            </div>
                                        </div>
                                    
                                        <div class="combinationEntry">
                                            <span>
                                                <span id="lvItems_ctrl1_lvOdds_ctrl1_lblMatch">Match 2</span></span>
                                            <input type="checkbox" name="lvItems$ctrl1$lvOdds$ctrl1$chkIsHit" id="lvItems_ctrl1_lvOdds_ctrl1_chkIsHit">
                                            <input type="text" id="lvItems_ctrl1_lvOdds_ctrl1_txtOdd" name="lvItems$ctrl1$lvOdds$ctrl1$txtOdd">
                                            <div class="clr">
                                            </div>
                                        </div>
                                    
                                        <div class="combinationEntry">
                                            <span>
                                                <span id="lvItems_ctrl1_lvOdds_ctrl2_lblMatch">Match 3</span></span>
                                            <input type="checkbox" name="lvItems$ctrl1$lvOdds$ctrl2$chkIsHit" id="lvItems_ctrl1_lvOdds_ctrl2_chkIsHit">
                                            <input type="text" id="lvItems_ctrl1_lvOdds_ctrl2_txtOdd" name="lvItems$ctrl1$lvOdds$ctrl2$txtOdd">
                                            <div class="clr">
                                            </div>
                                        </div>
                                    
                                        <div class="combinationEntry">
                                            <span>
                                                <span id="lvItems_ctrl1_lvOdds_ctrl3_lblMatch">Match 4</span></span>
                                            <input type="checkbox" name="lvItems$ctrl1$lvOdds$ctrl3$chkIsHit" id="lvItems_ctrl1_lvOdds_ctrl3_chkIsHit">
                                            <input type="text" id="lvItems_ctrl1_lvOdds_ctrl3_txtOdd" name="lvItems$ctrl1$lvOdds$ctrl3$txtOdd">
                                            <div class="clr">
                                            </div>
                                        </div>
                                    
                                    
                            </div>
                        
                        
                    <a href="javascript:__doPostBack('btnCalculate','')" class="functionButtons" id="btnCalculate">Calculate</a>
                    <a href="javascript:__doPostBack('btnAddItem','')" class="functionButtons" id="btnAddItem">Add</a>
                    <a href="javascript:__doPostBack('btnNewTicket','')" class="functionButtons" id="btnNewTicket">New Ticket</a>
                    <div class="clr">
                    </div>
                    <div class="functions">
                        <div class="borderLine">
                        </div>
                        <div class="combinationEntry">
                            <span>
                                <span id="lblBet">Bet</span>
                            </span>
                            <input type="text" id="txtBetValue" value="50" name="txtBetValue">
                            <div class="clr">
                            </div>
                        </div>
                        <div class="combinationEntry">
                            <span>
                                <span id="lblProfit">Profit</span>
                            </span>
                            <input type="text" id="txtProfitValue" readonly="readonly" value="0" name="txtProfitValue">
                            <div class="clr">
                            </div>
                        </div>
                        <div class="borderLine">
                        </div>
                    </div>
                </div>
        </div>
        <div class="footer">
            <a class="functionButtons" href="#">about</a> <a class="functionButtons" href="#">contact</a>
            <a class="functionButtons" href="#">upatstvo</a>
        </div>
    </div>
    

<script>
	var mainObj = {};
	var TicketItem = {};
	var SystemType = {};
	var TicketItems = []; //glavna niza 
	var odds = [];
	var odd = {};
	
	var combinations = $('.combination');
	var minValues = $('.minValue');
	var maxValues = $('.maxValue');
	
	
	for (var i = 0; i < combinations.length; i++) {
		var elem = $(combinations[i]);
		console.log(elem);
		SystemType = {
			"min" : minValues[i].value,
			"max" : maxValues[i].value
		}
		//var text = combinations[i] + " .combinationEntry";
		//console.log(text);
		var combinationValue = elem.children(".combinationEntry");
		
		//console.log(combinationValue);
		for (var k = 0; k < combinationValue.length; k++) {
			var elemX = $(combinationValue[k]);
			//console.log(combinationValue[k]);
			var value = elemX.children("input")[0].checked;
			var value2 = elemX.children("input")[1].value;
			console.log(value);
			console.log(value2);
		}
		
	}
	
	
	var mainObj = {
		"Bet" : 0,
		"Items" : []
	}
	
	var Items = [];
	
	var ItemObj = {
	
	}
	
	
	
	mainObj.Bet = 10;
	mainObj.Items = Items;
	console.log(mainObj);
	
	
	
</script>


<span style="display: none ! important;"><input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value=""></span><span style="display: none ! important;"><input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value=""></span><span style="display: none ! important;"><input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value=""></span><span style="display: none ! important;"><input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTI5NjU4NzYzMA8WAh4FdG9rZW4FJDYwNzYwNjU4LWQxYjktNDI3Ny1hMzU1LTE0ZWMzYmZmMWFiMhYCAgMPZBYCAgMPZBYCZg9kFgQCAQ8UKwACDxYEHgtfIURhdGFCb3VuZGceC18hSXRlbUNvdW50AgJkZBYCZg9kFgQCAQ9kFggCAQ8WAh4EVGV4dAUIU3lzdGVtIDFkAgMPD2QWAh4Gb25ibHVyBVJDaGVja1N5c3RlbVR5cGUoJ2x2SXRlbXNfY3RybDBfdHh0U3lzdGVtVHlwZU1pbicsJ2x2SXRlbXNfY3RybDBf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__SCROLLPOSITIONX" id="__SCROLLPOSITIONX" value="0"></span><span style="display: none ! important;"><input type="hidden" name="__SCROLLPOSITIONY" id="__SCROLLPOSITIONY" value="0"></span><span style="display: none ! important;"><input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWGAKens2ADwLQrMlkAtiskWQCiu6hlwEC/tCMvwkC/LqLygQC/tCY5QkC/LqH6gQClZiVZAKNmM1kArXAn5cBAqWg19AJAruJ1roEAqWg0/YJAruJ0toEAqWgn5QKAruJzvoEAqWg+6EKAruJqrMFAtqshokKAvaSlf0JAvuFyI8JAt6pzeMMAvPajJUB6GGJ/1xGNzPgEdSloksVyEVuU7k="></span></form>
</body></html>